local bgLayer = class("BgLayer",function()  return display.newLayer() end) 
function bgLayer:ctor()
     print("background called")
     local bg =display.newSprite("background.jpg")
     self:addChild(bg)
     display.align(bg,display.CENTER,display.cx,display.cy)
  
end

return bgLayer